package 设计模式.mediator;

/**
 * @功能
 * @创建时间 2020/5/4
 */
public class Finacial implements Department {
    private Mediator m;

    public Finacial(Mediator m) {
        this.m = m;
        m.register("finacial",this);
    }

    @Override
    public void selfAction() {
        System.out.println("给钱");
    }

    @Override
    public void outAction() {
        System.out.println("找帮主挣钱");
        m.command("development");
    }
}
